<template>
  <div id="app">
    <component :is="layoutComponent"></component>
  </div>
</template>

<script>
import DefaultLayout from './components/DefaultLayout.vue';
import LoginLayout from './components/Login.vue';

export default {
  name: 'App',
  data() {
    return {
      componentName:''
    };
  },
  components: {
    LoginLayout, DefaultLayout
  },
  methods: {},
  computed: {
    layoutComponent() {
      return this.$route.name === 'login' ? LoginLayout : DefaultLayout;
    },
  },
};
</script>

<style>

/* 应用整体 */
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  text-align: left; /* 修改为左对齐，更适合页面布局 */
  color: #333;
  margin-top: 0;
}

</style>
